/**
    ******************************************************************************
    * @file    resquest.h
    * @author  debian
    * @version V1.0.0
    * @date    2020-01-20
    * @brief   责任链模式
    ******************************************************************************
    * @attention
    *
    *
    ******************************************************************************
    */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __RESQUEST_H
#define __RESQUEST_H

#ifdef __cplusplus
    extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/


/** @addtogroup DataStruct_Driver
    * @{
    */

/** @addtogroup resquest
    * @{
    */
//申请的类
class Resqest
{
    public:
        Resqest(const std::string& name, int age, int loan) : _age(age), _name(name), _loan(loan){   //冒号是赋值

        }

        int get_loan() {
            return _loan;
        }

        int get_type_loan() {
            return type_loan;
        }

    private:
        unsigned int type_loan = 10000;     //单位为1万
        unsigned int _loan; 
        unsigned short _age;
        std::string _name;
};

/* Exported types ------------------------------------------------------------*/
/** @defgroup 
    * @{
    */ 



/**
    * @}
    */


/* Exported constants --------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/ 
/* Initialization and de-initialization functions *******************************/
/** @addtogroup resquest_Exported_Functions
    * @{
    */

/** @addtogroup resquest_Exported_Functions_Group1
    * @{
    */


/**
    * @}
    */

/* operation functions *******************************************************/
/** @addtogroup resquest_Exported_Functions_Group2
    * @{
    */



/**
    * @}
    */

/**
    * @}
    */ 

/**
    * @}
    */

/**
    * @}
    */


#ifdef __cplusplus
}
#endif

#endif /* __RESQUEST_H */

/******************* (C) 2020 HOME 深圳龙华 *****END OF FILE****/

